home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / g_man / cat3 / standard / pclos.z / pclos
Encoding:
Text File  |  1998-10-20  |  2.3 KB  |  67 lines

  1.  
  2.  
  3.  
  4. ppppcccclllloooossss((((3333GGGG))))                                                            ppppcccclllloooossss((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ppppcccclllloooossss - closes a filled polygon
  10.  
  11. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  12.      vvvvooooiiiidddd ppppcccclllloooossss(((())))
  13.  
  14. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  15.      _n_o_n_e
  16.  
  17. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      ppppcccclllloooossss closes a filled polygon that has been created by using ppppmmmmvvvv and a
  19.      sequence of ppppddddrrrr calls (or rrrrppppmmmmvvvv and rrrrppppddddrrrr calls).  It is not needed when
  20.      using ppppoooollllyyyy or ppppoooollllffff because these procedures close the polygon within
  21.      their own routines.  ppppcccclllloooossss closes the polygon by  connecting the last
  22.      point with the first.  The polygon so defined is filled using the current
  23.      pattern, color, and writemask.  For example, the following sequence draws
  24.      a filled square:
  25.  
  26.           pmv(0.0, 0.0, 0.0);
  27.           pdr(1.0, 0.0, 0.0);
  28.           pdr(1.0, 1.0, 0.0);
  29.           pdr(0.0, 1.0, 0.0);
  30.           pclos();
  31.  
  32. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  33.      bgnpolygon, endpolygon, pdr, pmv, v
  34.  
  35. NNNNOOOOTTTTEEEESSSS
  36.      ppppcccclllloooossss should not be used in new development.  Rather, polygons should be
  37.      drawn using the high-performance vvvv commands, surrounded by calls to
  38.      bbbbggggnnnnppppoooollllyyyyggggoooonnnn and eeeennnnddddppppoooollllyyyyggggoooonnnn.
  39.  
  40.      There can be no more than 256 vertices in a polygon.  Therefore, there
  41.      can be no more than 255 ppppddddrrrr calls between ppppmmmmvvvv and ppppcccclllloooossss.
  42.  
  43.      Be careful not to confuse ppppcccclllloooossss with the IRIX system call _p_c_l_o_s_e, which
  44.      closes an IRIX pipe.
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.